package GUI;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;

public class MessageToClienForm extends JPanel
{

	private JLabel clienlistjLabel = null;
	private JComboBox clientlistjComboBox = null;
	private JTextArea msgjTextArea = null;
	private JLabel messagejLabel = null;
	private JButton CreatejButton = null;
	private JButton exitjButton = null;
	private JButton backjButton = null;
	
	public MessageToClienForm()
	{
		super();
		initialize();
	}
	
	/**
	 * This method initializes ProductForm
	 */
	private void initialize() 
	{
		clienlistjLabel = new JLabel();
		clienlistjLabel.setText(" clients");
		clienlistjLabel.setBounds(new Rectangle(15, 45, 113, 23));
		
		messagejLabel = new JLabel();
		messagejLabel.setBounds(new Rectangle(15, 69, 113, 38));
		messagejLabel.setText("Message to client");
		
		this.setLayout(null);
		this.setSize(new Dimension(333, 245));
		this.add(getClientlistjComboBox(), null);
		this.add(getMsgjTextArea(), null);
		this.add(getCreatejButton(), null);
		this.add(getMsgjTextArea(), null);		
	}
	
	/**
	 * This method initializes clientlistjComboBox	
	 * 	
	 * @return javax.swing.JComboBox	
	 */
	private JComboBox getClientlistjComboBox() 
	{
		if (clientlistjComboBox == null) 
		{
			clientlistjComboBox = new JComboBox();
			clientlistjComboBox.setBounds(new Rectangle(129, 45, 89, 23));
		}
		return clientlistjComboBox;
	}
	
	/**
	 * This method initializes msgjTextArea	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getMsgjTextArea() {
		if (msgjTextArea == null) {
			msgjTextArea = new JTextArea();
			msgjTextArea.setSize(new Dimension(90, 37));
			msgjTextArea.setLocation(new Point(128, 70));
		}
		return msgjTextArea;
	}
	
	/**
	 * This method initializes CreatejButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getCreatejButton() 
	{
		if (CreatejButton == null) 
		{
			CreatejButton = new JButton();
			CreatejButton.setBounds(new Rectangle(239, 205, 75, 23));
			CreatejButton.setText("Create");
			
		}
		return CreatejButton;
	}

}


